package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.AdminRoleButton;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface AdminRoleButtonService extends IService<AdminRoleButton> {

    void dropByButtonId(Long id);

    Page<AdminRoleButton> pageList(PageUtil pageUtil, Long roleId);

    long getByButtonId(Long id);

    int dropBean(Long id);

    List<Object> getByRoleIdAndButtonIds(Long roleId, List<Long> buttonIds);

}
